{% extends "base.html" %}

{% block title %}登录{% endblock %}

{% block content %}
<div class="auth-container">
    <h2>用户登录</h2>
    <form method="POST" action="{{ url_for('login') }}">
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" id="username" name="username" required>
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" id="password" name="password" required>
        </div>
        <button type="submit" class="btn btn-primary">登录</button>
    </form>
    <div class="auth-links">
        <a href="{{ url_for('register') }}">没有账号？立即注册</a>
    </div>
</div>
{% endblock %}